[CORE] Fix GlutenConfig runtime modifiability#12036
Conversation
|
Run Gluten Clickhouse CI on x86 |
1 similar comment
|
Run Gluten Clickhouse CI on x86 |
|
@malinjawi thank you for the PR. Can you add one column to https://github.com/apache/gluten/blob/main/docs/velox-configuration.md and mark each config as static (⚓) or dynamic (🔄)? |
|
Run Gluten Clickhouse CI on x86 |
116ad3c to
b6c19f6
Compare
|
Run Gluten Clickhouse CI on x86 |
|
thank you, @malinjawi. Can you fix Configuration.md as well? our config file is automatically created. Can you change the script instead? |
|
Run Gluten Clickhouse CI on x86 |
|
Thank you @FelixYBW! I updated and regenerated the docs through Verified with:
|
7054c17 to
0703881
Compare
|
Run Gluten Clickhouse CI on x86 |
|
|
||
| override protected def test(testName: String, testTags: Tag*)(testFun: => Any)(implicit | ||
| pos: Position): Unit = { | ||
| if (isConfigParserCoverage(testName) && !registerQuotedConfigParserTest) { |
There was a problem hiding this comment.
Does this mean the original Spark test is excluded and replaced by the variant test? If so, can we just exclude it in VeloxTestSettings.scala and let the variant be tested instead?
testGluten("Checks if SET/RESET can parse all the configurations") {
}
There was a problem hiding this comment.
Thanks @philo-he, addressed. I removed the custom test(...) override, excluded Spark's original Checks if SET/RESET can parse all the configurations case in VeloxTestSettings.scala, and registered the quoted-key coverage as a normal testGluten(...) variant.
| assert(!conf.isModifiable(GlutenConfig.GLUTEN_UI_ENABLED.key)) | ||
| } | ||
|
|
||
| test("GlutenConfig reads active SparkSession runtime configs") { |
There was a problem hiding this comment.
Can we move these two tests to a new test suite under gluten-ut/test? Generally, the spark{VERSION} folders are used for Spark's original tests and their version-specific variants.
There was a problem hiding this comment.
Thanks @philo-he, moved these two Gluten-specific tests into a new shared suite under gluten-ut/test: org.apache.gluten.config.GlutenRuntimeConfigSuite.
I also restored the Spark 4.0 / 4.1 GlutenRuntimeConfigSuite files to only wrap Spark's original RuntimeConfigSuite.
|
Run Gluten Clickhouse CI on x86 |
|
Run Gluten Clickhouse CI on x86 |
What changes are proposed in this pull request?
This PR fixes GlutenConfig runtime modifiability reporting for #11998.
GlutenConfig.get previously constructed GlutenConfig from SQLConf.get, the JVM thread-local SQLConf. Spark treats configs stored only in that static/thread-local SQLConf path as non-modifiable, so spark.conf.isModifiable("spark.gluten.*") could report false even for Gluten configs that are not static.
Main changes:
Fixes #11998.
How was this patch tested?
Focused runtime config suites:
Also checked:
Was this patch authored or co-authored using generative AI tooling?
Generated-by: IBM BOB